package com.example.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
public class AccountDto {
    @TableField
    private Integer id;
    private String account;
    private String nickName;
    private String password;
    private String status;
    //    短信验证码
    @TableField(exist = false)
    private String msgCode;

    @TableField(exist = false)
    private String loginType = "code";

    //    当前用户拥有的角色
    @TableField(exist = false)
    private List<Integer> roleList;
}
